Skip to content

Conversation

@Stefterv
Copy link
Collaborator

@Stefterv Stefterv commented Nov 19, 2025

Rewrote both functions so they fit into a single file, negating the need for hopping around when looking into what this functionality does. Now all the errors that can occur can be quickly visible and it no longer generates random awt windows through the Messages class

TODO:

  • Write tests
  • Test on Linux
  • Test on Linux with sudo
  • Test on Linux with XDG_CONFIG_HOME
  • Test on Windows
  • Text on macOS
  • Figure out a steady way to support portable versions
  • Test Portable preferences
    • macOS
    • Windows
    • Linux

@Stefterv
Copy link
Collaborator Author

One thing I just realised, that maybe it is a good idea to migrate the settings folders on each platform also to a more modern place (maybe Java can give us a location)

…lder()`

Rewrote both function so they fit into a single file, negating the need for hopping around when looking into what this functionality does.

Also rewrote it so it is no longer generates random awt windows through the `Messages` class
- Added the previous settings override in base again
- Added a system property to override the settings folder within tests
Introduces logic to detect a preferences.txt file in the same folder as the running executable or jar. If found, settings are loaded from this location, improving portability and allowing users to override default settings without modifying system directories.
@Stefterv Stefterv requested a review from catilac November 27, 2025 14:13
@Stefterv Stefterv marked this pull request as ready for review November 27, 2025 14:13
@catilac
Copy link
Collaborator

catilac commented Dec 3, 2025

lgtm! What is a good way for me to test this?

@Stefterv
Copy link
Collaborator Author

Stefterv commented Dec 4, 2025

It shouldn't really change anything, so if you check the Preferences screen and compare between the local build and 4.4.10 they should be the same!

Copy link
Collaborator

@catilac catilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works!

@catilac catilac merged commit 467cee7 into processing:main Dec 5, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants